package com.fortune.dto.in.mUserMgt;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import com.fortune.constants.PatternConstants;
import com.fortune.constants.enums.Status;

import io.swagger.annotations.ApiModelProperty;

public class MUserAddDto {
	@NotBlank(message="员工编号不能为空")
	@ApiModelProperty(required=true, example="员工编号")
	private String number;
	@NotBlank(message="员工姓名不能为空")
	@ApiModelProperty(required=true, example="员工姓名")
	private String name;
	@Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
	@ApiModelProperty(required=true, example="手机号码")
	private String phone;
	@NotBlank
	@ApiModelProperty(required=true, example="岗位id")
	private String roleId;
	@NotNull
	@ApiModelProperty(required=true, example="用户状态")
	private Status status;
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "MUserAddDto [number=" + number + ", name=" + name + ", phone=" + phone + ", roleId=" + roleId
				+ ", status=" + status + "]";
	}
}
